#include "stack.h"

void TestStack1()
{
	Stack st;
	StackInit(&st);

	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);

	while (!StackEmpty(&st))
	{
		STDataType num = StackTop(&st);
		StackPop(&st);

		printf("%d ", num);
	}
	printf("\n");
}
int main()
{
	TestStack1();
	return 0;
}